package com.atguigu.yygh.hosp.testmongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author 杨林
 * @create 2022-11-06 10:35 星期日
 * description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//@Document(collation = "user")
public class User {
    @Id
    private String id;
    private String name;
    private Integer age;
    private String email;
    private Date createDate;
}
